<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>专家详细信息</title>
<%@ include file="/common/meta.jsp"%>
<script type="text/javascript" src="${res}/js/proposal/irisPrpPrepare.js"></script>
<script type="text/javascript" src="${res}/js/validate/irisvalidator.js"></script>
<script type="text/javascript" src="${res}/js/autodisckey/autodisckey.js"></script>

<style type="text/css">
	.input_width { width:130px }
	.input_width1 { width:45px }
	.select_width { width:143px }
	.table_td td {border:0}
	.long_input{ width:300px }
    .selectWidth4{width:300px;}
</style>
<script type="text/javascript">
var type = "${param.type}";
var parentTable = parent.$("#"+"${param.parentTab}");	//父页面的表格
var selectRadio = $();									//父页面选中的单选框
var selectTr = $();										//父页面选中的行

if(type=="edit") {
	selectRadio = parentTable.find(":radio:checked");
	selectTr = selectRadio.parents("tr");
}
$("table").addClass("table01");
$("table.t_css").each(function(){
	$(this).find("tr:even").addClass("li_1");
	$(this).find("tr:odd").addClass("li_2");
});
$(function(){
	$("#fragment-tab1 :text,#fragment-tab1 [type='date']").addClass("input_width");
	$("#fragment-tab2 :text,#fragment-tab2 [type='date']").addClass("input_width1");

	$("#fragment-tab1 select").addClass("select_width");
	
	var submitpsn=selectTr.find("[name$='submit_psn']");//标示是否是申报人
	var isAdminor=false;//根据权限判断是否是单位管理员
	<security:authorize ifAnyGranted="A_DAILU_PROPOSAL">
	isAdminor = true;
	</security:authorize>
	

	
	
	if(type=="edit"){
		
		$("input:not(:radio:button),textarea").each(function(){

			var id=$(this).attr("name");
			if(id==null || id=="")
				return true;
			
			var parentObj=selectTr.find("[name$='/"+id+"']");
			if(parentObj.length==2){
				parentObj = parentObj.eq(1);
			}else{
				parentObj = parentObj;
			}
			var value="";
			if(parentObj.is("span"))
				
				value=parentObj.text();
			else
				value=parentObj.val();
			//if($(this).is("input"))//初始化input框 不包括radio
				$(this).val(value);
		});
		
		$(":radio").each(function(){//初始化radio框
			var name=$(this).attr("name");
		
			
			var value=$("[name='"+name+"_value']").val();
			if($(this).val()==value)
				$(this).attr("checked",true);
			
		});
		tree();
		changeCardType();
		
		if(submitpsn.length>0 && submitpsn.val()=="1"){//如果是申报人
			//如果不是单位管理员
			if (!isAdminor) {
				$("input,select").each(function(){
					if(!$(this).attr("class")||$(this).attr("class").indexOf("notdisabled")==-1)
						$(this).attr("disabled","true");
				});
				$("#submit_psn_note").show();//如果是项目负责人，显示如何修改个人信息提示
				
				$("span[name='req_submitpsn']").show();//“通讯地址”申请人为必填
				$("input[name='address']").addClass("required");
				
				$("a,img").removeAttr("onclick");
				
				parent.$("#TB_ajaxWindowTitle").html("编辑申请人信息");
			} else {
				parent.$("#TB_ajaxWindowTitle").html("设置项目负责人");
				$("input[name='zh_name']").attr("disabled", "disabled");
			}
		} else {
			$("#personSelect").hide();
		}
	} else {
		$("#personSelect").hide();
	}


	function savePsn(){
		//填写检查接口
	    ages();
		saveResearch("researchTbl");
		validate($("#fragment-tab1"),"");
		validate($("#fragment-tab2"),"");
		if(!valResult()){
			irisValShowMsg($("#savePsn"));
			return false;
		}

		//添加新行
		if(type=="add") {
			addNewRowDeal(parentTable);
//			parent.countPsnNum('zh_persons,researchs','psncnt_total');
		}

		$("input:not(:radio:button),textarea").each(function(){
			
			var id=$(this).attr("name");
			var parentObj=null;
			
			if(id==null || id=="")
				return true;
			
			//获得父页面的对象
			if(type=="add"){
				parentObj=parentTable.find("tr:last-child").find("[name$='/"+id+"']");
			}else if(type=="edit"){
				parentObj=selectTr.find("[name$='/"+id+"']");
				
			}

			if(parentObj!=null){
				if(parentObj.is("span")){
					parentObj.text($(this).val());	//将值写回父页面
				}
				else{
					parentObj.val($(this).val());
				}
			}
			
		});

		parent.caculateDayChinaTotal();
		parent.attachCheckBuyWay();


		if(type=="add"){
			parentTable.find("tr:last :radio").attr("checked",true);
			if("${param.parentTab}"=="zh_persons")
				parent.setSubmitPsn();
		}
		
		if(submitpsn.length>0 && submitpsn.val()=="1"){//如果是申报人
			parent.synFzrMsg(0);
			parent.psnSynchro();
		}
		
		//if(confirm("保存成功，是否返回申请书页面"))
		//	parent.tb_remove();
		//else
		$(".wBox_popup").hide();
		if(confirm("保存成功，是否返回申请书页面")){
			<security:authorize ifAnyGranted="A_MENU_MANAGE_19">
			parent.$("#depart_code").val($("#depart_code").val());//部门信息
			</security:authorize>
			parent.tb_remove();
			
		}
			
		else if(type=="add"){
			type = "edit";
			selectRadio = parentTable.find(":radio:checked");	//父页面选中的单选框
			selectTr = selectRadio.parents("tr");				//父页面选中的行
		}
	}
	
	$("#savePsn").click(function(){
		setTimeout(savePsn,100);
	});
	

	<security:authorize ifAnyGranted="A_MENU_MANAGE_19">
	$("#depart_code").val(parent.$("#depart_code").val());//初始化部门信息
	</security:authorize>
	
});

function tree(){
	// var prof_title_value=$("#prof_title_value").val(); 
	var prof_title_name=$("#prof_title_name").val(); 
	// var str ="{'id':'"+prof_title_value+"','name':'"+prof_title_name+"'}";
	$("#prof_title").val(prof_title_name);
	
	var subject_name=$("#subject_name").val(); 
	// var str ="{'id':'"+prof_title_value+"','name':'"+prof_title_name+"'}";
	$("#subject").val(subject_name);
	
	
	var discipline_name=$("#discipline_name").val(); 
	// var str ="{'id':'"+prof_title_value+"','name':'"+prof_title_name+"'}";
	$("#discipline").val(discipline_name);
	
}

function loadAjaxSelect(selectId,url,params,varParm){
	$.ajax( {
		url : url,
		type : 'post',
		dataType:'json',
		data : params,
		success : function(data) {
			
			for(var i=0;i<data.length;i++){
				var value=data[i].id;
				var text=data[i].name;		
				$("#"+selectId).append("<option value='"+value+"'>"+text+"</option>");
				

			}
			if(type=="edit"){//如果是修改，才需要初始化select框的值
				var selectValue=$("[name='"+selectId+"_value']").val();
				$("#"+selectId+" option").each(function(i,obj){
					if($(obj).val()==selectValue){
						setTimeout(function() {
							$(obj).attr("selected",true);
						}, 1);
					}
				});
			}
			
			setDegree();	
		}
	});
	}
function initControlValue(objId){
    
    var name="";
    var obj=$("#"+objId);
    if(obj.is("select")){
        name=obj.attr("name");
        obj.parent().children("input[name$='"+name+"_value'][type='hidden']").val($("#"+objId).find("option:selected").val());
        $("#"+objId).parent().children("input[name$='"+name+"_name']").val($("#"+objId).find("option:selected").text());
    }
   
    else if(obj.is(":radio")){
        name=obj.attr("name");
        if(obj.is(":checked")){//如果被选中
            //alert($("#"+objId).val());        
            obj.parents("table").find("input[name$='"+name+"_value'][type='hidden']").val($("#"+objId).val());
            $("#"+objId).parent().children("input[name$='"+name+"_name']").val($("#"+objId).next().text());
        }
        else{
            
            obj.parents("table").find("input[name$='"+name+"_value'][type='hidden']").val("");
        }
    }else if(obj.is(":checkbox")){
        name=obj.attr("name");
        if(obj.is(":checked"))//如果被选中
            obj.parent().find("input[name$='"+name+"_value'][type='hidden']").val($("#"+objId).val());
        else
            obj.parent().find("input[name$='"+name+"_value'][type='hidden']").val("");
    }else{
        name=obj.attr("id");
        obj.parents("td").find("input[name$='"+name+"_name'][type='hidden']").val(obj.val());
        obj.parents("td").find("input[name$='"+name+"_code'][type='hidden']").val($("#"+objId+"_hideId").val());
    }   
}

function setDegree(){
	
	var degreeText=$("#degree").children("option").filter(":selected").text();

	if(degreeText=="博士"){
		$("#degree_country_required").show();
		$("#degree_year_required").show();
		var itemClass=$("#degree_country").attr("class");
		if(itemClass.indexOf("required")==-1)
			$("#degree_country_value").addClass("required");
			$("#degree_year").addClass("required");
	}else{//关闭最高学位验证
		$("#degree_country_required").hide();
		$("#degree_year_required").hide();
		$("#degree_country_value").removeClass("required");
		$("#degree_year").removeClass("required");
	}
}
function countFundAuto(idStart, countStr, totalStr) {
	var indexs = countStr.split(",");
	var count = 0;
	for ( var i = 0; i < indexs.length; i++) {
		//
		//var fund=$("input[id='idStart+indexs[i]']").val();
		var fund = $("#" + idStart+ indexs[i]).val();
		if (!$.isNumeric(fund))
			fund = "0";
		count = ((parseFloat(count)*10000 + parseFloat(fund)*10000)/10000).toFixed(4);

	}


	count = formatNumberAuto(count.toString(), 9, 4, 2);// 格式化金额

	//add by cg 扩展：对于多个输入框所求得的和，同时赋给某几个文本框
	var totalStrArr = totalStr.split(",");
	var totalId;
	for(var i = 0;i < totalStrArr.length; i++ ) {
		totalId = totalStrArr[i];

		$("#" + idStart + totalId).val(count);
	}
}
function changeCardType(){
	var cardTypeObj = $("[name='card_type_value']");
	var cardCodeObj = $("[name='card_code']");
	var mobile = $("#mobile");
	
	if(cardTypeObj.val()=="1"){
		cardCodeObj.addClass("idCard");
		mobile.addClass("mobile");
		//cardCodeObj.attr("label","身份证");
	} else {
		cardCodeObj.removeClass("idCard");
		mobile.removeClass("mobile");
		//cardCodeObj.attr("label","证件号码");
	}
}
function cilckFile(flag){
	var fileCode = $('#content_file_code8').val();
	if(fileCode!=""){
		tb_show("上传照片", "<c:out value="${ctx}"/>/proposal/edit/psn/updatePhoto?fileCode="+fileCode+"&flag="+flag+"&TB_iframe=true&height=250&width=530", false);
	}else{

		tb_show("上传照片", "<c:out value="${ctx}"/>/proposal/edit/psn/updatePhoto?flag="+flag+"&TB_iframe=true&height=250&width=530", false);
	}
}
//选择项目负责人回调
function selectPsnCall(data) {
	$(parent.document).find("input[name$='psn_code']").val(data.person.psnCode);
	$("input[name='zh_name']").val(data.person.zhName);
	var gender_value = "";
	if (data.personExtend.basic_info.gender_value=='F') {
		$("input[name='gender'][value='F']").attr("checked",true);
		gender_value = "F";
	} else { 
		$("input[name='gender'][value='M']").attr("checked",true);
		gender_value = "M";
	}
	$("input[name='gender_value']").val(gender_value);;
	$("#card_type").val(data.personExtend.basic_info.card_type_value);
	$("input[name='card_type_value']").val(data.personExtend.basic_info.card_type_value);
	$("input[name='card_type_name']").val(data.personExtend.basic_info.card_type_name);
	$("input[name='card_code']").val(data.personExtend.basic_info.card_code);
	$("#ethnicity").val(data.personExtend.basic_info.ethnicity_value);
	$("input[name='ethnicity_value']").val(data.personExtend.basic_info.ethnicity_value);
	$("input[name='ethnicity_name']").val(data.personExtend.basic_info.ethnicity_name);
	$("#region").val(data.personExtend.basic_info.region_value);
	$("input[name='region_value']").val(data.personExtend.basic_info.region_value);
	$("input[name='region_name']").val(data.personExtend.basic_info.region_name);
	$("#org").val(data.personExtend.basic_info.org_name);
	$("input[name='org_code']").val(data.person.orgCode);
	$("#prof_title").val(data.personExtend.basic_info.prof_title_name);
	$("input[name='prof_title_value']").val(data.personExtend.basic_info.prof_title_value);
	$("input[name='prof_title_name']").val(data.personExtend.basic_info.prof_title_name);
	
	$("#gender").val(data.personExtend.basic_info.gender_name);
	$("input[name='gender_value']").val(data.personExtend.basic_info.gender_value);
	$("input[name='gender_name']").val(data.personExtend.basic_info.gender_name);
	
	
	$("input[name='position']").val(data.personExtend.basic_info.position);
	$("input[name='birthday']").val(data.personExtend.basic_info.birthday);
	$("input[name='tel_work']").val(data.personExtend.contact.tel_work);
	$("#degree").val(data.personExtend.basic_info.degree_value);
	$("input[name='degree_value']").val(data.personExtend.basic_info.degree_value);
	$("input[name='degree_name']").val(data.personExtend.basic_info.degree_name);
	$("#degree_country").val(data.personExtend.basic_info.degree_country_value);
	$("input[name='degree_country_value']").val(data.personExtend.basic_info.degree_country_value);
	$("input[name='degree_country_name']").val(data.personExtend.basic_info.degree_country_name);
	$("input[name='degree_college']").val(data.personExtend.basic_info.degree_college);
	$("input[name='degree_year']").val(data.personExtend.basic_info.degree_year);
	$("#academician").val(data.personExtend.basic_info.academician_value);
	$("input[name='academician_value']").val(data.personExtend.basic_info.academician_value);
	$("input[name='academician_name']").val(data.personExtend.basic_info.academician_name);
	$("#post_doctor").val(data.personExtend.basic_info.post_doctor_value);
	$("input[name='post_doctor_value']").val(data.personExtend.basic_info.post_doctor_value);
	$("input[name='post_doctor_name']").val(data.personExtend.basic_info.post_doctor_name);
	$("input[name='email']").val(data.personExtend.contact.email);
	$("input[name='mobile']").val(data.personExtend.contact.mobile);
	$("#educate").val(data.personExtend.basic_info.educate_value);
	$("input[name='educate_value']").val(data.personExtend.basic_info.educate_value);
	$("input[name='educate_name']").val(data.personExtend.basic_info.educate_name);
	$("input[name='subject_code']").val(data.personExtend.basic_info.subject_code);
	$("input[name='subject_name']").val(data.personExtend.basic_info.subject_name);
	$("input[name='discipline_code']").val(data.personExtend.basic_info.discipline_code);
	$("input[name='discipline_name']").val(data.personExtend.basic_info.discipline_name);
	tree();
	$("input[name='major_work']").val(data.personExtend.contact.major_work);
	
	<security:authorize ifAnyGranted="A_MENU_MANAGE_19">
	$("#depart_code").val(data.person.deptCode);
	</security:authorize>
	
	tb_remove2();
}



function   ages(){
	var str = $("#birthday").val();
	var   r   =   str.match(/^(\d{1,4})(-|\/)(\d{1,2})\2(\d{1,2})$/);
	if(r==null)return   false;
	var   d=   new   Date(r[1],   r[3]-1,   r[4]);
	if(d.getFullYear()==r[1]&&(d.getMonth()+1)==r[3]&&d.getDate()==r[4]){ 
		var   Y   =   new   Date().getFullYear();
		$("#age").val(Y-r[1]); 
	}
	
	return("输入的日期格式错误！");
	}  
</script>
<script type="text/javascript">
function initTreeValueExt(treeId, treeNode) {
	   
	  if (!(treeNode && (treeNode.level > 0 || !treeNode.isParent))) {
		scmWarn($("#" + treeId).attr("label") + messageTip.researchAreaInvalidDisciplineCode);
		if (treeNode.level == 0) {
			$("#" + treeId).val("");
			$("#" + treeId).parents("td").find("[name$='" + treeId + "_code'],[id$='" + treeId+ "_code']").val("");
			$("#" + treeId).parents("td").find("[name$='" + treeId + "_value'],[id$='" + treeId+ "_value']").val("");
			$("#" + treeId).parents("td").find("[name$='" + treeId + "_name'],[id$='" + treeId+ "_name']").val("");
		}
		
		return false;
		}
	
	
		var str = treeNode.name;
		var obj = treeNode.parentNode;
		while (obj != null) {
			obj = obj.parentNode;
		}
		
		$("#" + treeId).parents("td").find("[name$='" + treeId + "_code'],[id$='" + treeId+ "_code']").val(treeNode.id);
		$("#" + treeId).parents("td").find("[name$='" + treeId + "_value'],[id$='" + treeId+ "_value']").val(treeNode.id);
		$("#" + treeId).parents("td").find("[name$='" + treeId + "_name'],[id$='" + treeId+ "_name']").val(str);
		
	}
	$(function(){
		var tab=$('#content_file_code8').val();
		if( tab==''){
		/*	$("#orgphotoImg").attr("src",res_app+'/images/app/photo_01.jpg');*/
return false;
		}
		{

			$("#orgphotoImg").attr("src", ctx + '/file/ajax-filedownload?fileCode=' + $("#content_file_code8").val());
		}
	})

/* 
$(function(){
	initControl11();
	$("#tab1").click();
	$("#fragment-tab1 :text,#fragment-tab1 [type='date']").addClass("input_width");
	$("#fragment-tab1 select").addClass("select_width");

	$("table.t_css").each(function(){  
	    $(this).find("tr").not(".cbTable tr").filter(":even").addClass("li_1");
	    $(this).find("tr").not(".cbTable tr").filter(":odd").addClass("li_2");
	});
	}); */
</script>
</head>
<body>

	<div id="tabnav">
		<ul>
			<li class="down" id="tab1" onclick="changeTab(this.id)">
					<a href="###"><span>专家个人信息</span></a>
			</li>

			<li  id="tab2" onclick="changeTab(this.id)">
				<a href="###"><span>专家经费</span></a>
			</li>
		</ul>
	</div>

	<div class="tab_box" id="fragment-tab1">
		<table class="t_css " width="100%" border="0" cellpadding="0" label="专家个人信息" cellspacing="1">
		<col style="width: 20%" />
	    <col style="width: 20%" />
	    <col style="width: 15%" />
	    <col style="width: 25%" />
		<col style="width: 20%" />
		<security:authorize ifAnyGranted="A_MENU_MANAGE_19">
		<input type="hidden" name="depart_code" id="depart_code"  value="" >
        </security:authorize>
		
		<tr>
			<td nowrap align="right"><span class="color_red">*</span>专家姓名：</td>
			<td >
				<input name="zh_name" label="专家姓名" type="text"  class="input_text required maxlength:25"  value="" maxlength="25"/>
			</td>
			<td align='right'>
				<span class="color_red">*</span>
				出生日期：
			</td>

			<td>
				<cpt:date id="birthday"  value="" className="required date beforeToday" label="出生日期"   name="birthday" ></cpt:date>
				<input type='hidden' name='age' id='age' value=""/>
			</td>

			<td align="center" rowspan="4">
				<div id="uploadsuccess8">

							<img id="orgphotoImg" src="${res_app}/images/app/photo_01.jpg"  style="width:130px;height:159px" />

						<%--<c:set var="file_code8"></c:set>
						<c:choose>
							<c:when test="${empty param.fileCode || param.fileCode==''}">
								<img src="${res_app}/images/app/photo_01.jpg"  style="width:130px;height:159px" />
							</c:when>
							<c:otherwise>
								<img src="${ctx}/file/ajax-filedownload?fileCode=${param.fileCode}"  style="width:130px;height:159px" />
							</c:otherwise>
						</c:choose>--%>
					<a href="#" style="cursor: pointer;" onclick="cilckFile('org')"><br/><span style="color: blue;">[上传照片]</span></a><BR />
					<span class="color_red">照片规格：358像素X441像素（小于2M）</span>
				</div>
				<div id="file8" style="text-align:center">
					<input type="hidden" name="file_code8" id="content_file_code8"  name="file_code8" value="" />
				</div></td>
		</tr>
			<tr>
			<td align="right"><span class="color_red">*</span>性别：</td>
			<td>
				<cpt:select key="gender1" cacheable="false"   value="" id="gender" name="gender"    onChange="initControlValue(this.id)"   label="性别" />
				<input type="hidden" id="gender_value" name="gender_value" value="" class="required"  label="性别"/>
				<input type="hidden" id="gender_name" name="gender_name" value="" />
			</td>


			<td align="right"><span class="color_red">*</span>国别地区：</td>
			<td>
				<cpt:select id="region"  key="country" name="region" onChange="initControlValue(this.id)" label="国别地区"></cpt:select>
				<input type="hidden" name="region_value" value=""  class="required"  label="国别地区"/>
				<input type="hidden" name="region_name" value="" />
			</td>
			</tr>
			<tr>
				<td align="right"><span class="color_red">*</span>职务职称：</td>
				<td>

					<cpt:tree key="prof_title" cacheable="false" readonly="true" value="" id="prof_title" name="prof_title"  showPattern="all" shieldPattern="-1" onClick="initTreeValueExt"   label="职称" />
					<input type="hidden" id="prof_title_value" name="prof_title_value" value="" class="required"  label="职务职称"/>
					<input type="hidden" id="prof_title_name" name="prof_title_name" value="" />
				</td>


				<td align="right"><span class="color_red">*</span>专业：</td>
				<td>
					<input type="text" label="专业" name="major_work" class="required" maxlength="50"/>
				</td>
		</tr>

		<tr>
			<td align='right'>
				<span class="color_red">*</span>
				国外工作单位：
			</td>
          	<td colspan="3">
				<input type="text" name="org_name" maxlength="100" required class="required selectWidth4  " label="国外工作单位" />
			</td>
		</tr>
			<tr>
				<td align="right"><span class="color_red" >*</span>学位：</td>
				<td>
					<cpt:select id="degree"  key="degree"  onChange="initControlValue(this.id);"></cpt:select>
					<input type="hidden" name="degree_value" value="" label="学位" class="required">
					<input type="hidden" name="degree_name" value="">
				</td>
			</tr>

			<tr>
				<td align="right"><span class="color_red">*</span>通讯地址：</td>
				<td  colspan="3">
					<input type="text" name="tech_department_address" maxlength="30" required class="required selectWidth4" label="通讯地址" />
				</td>
			</tr>
			<tr>
				<td align="right">
						<span class="color_red">*</span>护照号码：
				</td>
				<td>
					<input type="text" name="card_code" label="护照号码" class="input_text  required" maxlength="30"/>
				</td>
				<td align="right"><span class="color_red">*</span>电话：</td>
				<td>
					<input type="text" name="tel_work" maxlength="20"  class="required "   label="电话" />
				</td>
			</tr>
			<tr>

				<td align="right"><span class="color_red">*</span>所属专家组织：</td>
				<td >
					<input type="text" name="subordinate_expert_organizations" maxlength="30"  class="required "   label="所属专家组织" />
				</td>
				<td align="right"><span class="color_red">*</span>电子邮箱：</td>
				<td>
					<input type="text" name="email" required class="required email" label="电子邮箱" />
				</td>

			</tr>
		<tr>

			<td align="right"><span class="color_red">*</span>在华天数：</td>
			<td >
				<input type="text"  name="days_to_china" maxlength="11" onfocus="InitInput.setNumber(this,11,0,0);" class="required "   label="在华天数" />
			</td>
			<td align="right"><span class="color_red">*</span>起止日期：</td>
			<td colspan="4">
				<input type="text" label="起止日期" name="start_end_date" class="required " maxlength="50"/>
			</td>
		</tr>

			<tr class="li_1">
			<td align="left" colspan="8"><span class="color_red">*</span><strong>教育经历</strong></td>
		</tr>
			<tr class="li_2">
				<td colspan="8">
					<textarea rows="8"  cols="135"  class="input_textarea required  maxlength:300"   name='summary9'  label="教育经历"></textarea>
					<input type="hidden" name="summary9_hidden" id="summary9_hidden" value=""/>
				</td>
			</tr>
			<tr class="li_1">
				<td align="left" colspan="8"><span class="color_red">*</span><strong>工作经历</strong></td>
			</tr>
			<tr class="li_2">
				<td colspan="8">
					<textarea rows="8" cols="135"  name='summary10' class="input_textarea required  maxlength:300"   label="工作经历"></textarea>
					<input type="hidden" name="summary10_hidden" id="summary10_hidden" value=""/>
				</td>
			</tr>
			<tr class="li_1">
				<td align="left" colspan="8"><span class="color_red">*</span><strong>代表性成果/主要成就</strong></td>
			</tr>
			<tr class="li_2">
				<td colspan="8">
					<textarea rows="8"  cols="135" name='summary11' class="input_textarea required  maxlength:300"   label="代表性成果/主要成就"></textarea>
					<input type="hidden" name="summary11_hidden" id="summary11_hidden" value=""/>
				</td>
			</tr>
			<tr class="li_1">
				<td align="left" colspan="8"><span class="color_red">*</span><strong> 其他（包括获得的重要奖项、在国际学术组织兼职、在国际学术会议做重要报告等情况）</strong></td>
			</tr>
			<tr class="li_2">
				<td colspan="8">
					<textarea rows="8" cols="135"  name='summary12' class="input_textarea required  maxlength:300"   label="其他"></textarea>
					<input type="hidden" name="summary12_hidden" id="summary12_hidden" value="" />
				</td>
			</tr>
	</table>
	</div>

	<div class="tab_box" id="fragment-tab2" style="display: none">
		<table class="t_css table01" width="100%" border="0" cellpadding="0" label="专家经费" cellspacing="1">
			<%--<col style="width: 8%" />--%>
			<%--<col style="width: 7%" />--%>
			<col style="width: 9%" />
			<col style="width: 9%" />
			<col style="width: 8%" />
			<col style="width: 8%" />
			<col style="width: 8%" />
			<col style="width: 8%" />
			<col style="width: 8%" />
			<col style="width: 8%" />
			<col style="width: 8%" />
			<col style="width: 8%" />
			<col style="width: 8%" />
			<col style="width: 9%" />
			<tr >
				<%--<td align="center" rowspan="2">专家姓名</td>--%>
				<%--<td align="center" rowspan="2">国籍</td>--%>
				<td align="center" rowspan="2">来华次数</td>
				<td align="center" rowspan="2">工作天数</td>
				<td align="center" rowspan="2">国籍旅费</td>
				<td align="center" rowspan="2">住宿费</td>
				<td align="center" rowspan="2">城市间交通费</td>
				<td align="center" rowspan="2">专家补贴</td>
				<td align="center" rowspan="2">专家生活费</td>
				<td align="center" rowspan="2">讲课费</td>
				<td align="center" rowspan="2">零用费</td>
				<td align="center" colspan="2">工薪</td>
				<td align="center" rowspan="2">小计</td>
			</tr>
<tr>
	<td align="center" >合同约定金额</td>
	<td align="center">申请资助</td>

</tr>

			<tr>
				<%--<td colspan="1" >
					<input name="zh_name" label="专家姓名" type="text"  class="input_text required maxlength:25"  value="" maxlength="25"/>
				</td>--%>
				<%--<td >

                        <cpt:select id="region"  key="country" name="region" onChange="initControlValue(this.id)" label="国籍"></cpt:select>
                        <input type="hidden" name="region_value" value=""  class="required"  label="国籍"/>
                        <input type="hidden" name="region_name" value="" />
 				</td>--%>
                    <td  align="center">
                        <input name="number_of_visits" label="来华次数" type="text"  class="input_text required " style="text-align: right" onfocus="InitInput.setNumber(this,9,0,0)"  value="" />
                    </td>
                    <td align="center">
                        <input name="work_date" label="工作天数" type="text"  class="input_text required "  value="" onfocus="InitInput.setNumber(this,9,0,0)"/>
                    </td>
                    <td  align="center">
                        <input name="nationality_travel_expenses" label="国籍旅费" id="nationality_travel_expenses"
                               onchange="countFundAuto('','nationality_travel_expenses,hotel_expense,transportation_charges,expert_subsidies,expert_living_expenses,lecture_fees,petty_cash,contract_agreed_amount,apply_for_subsidy','subtotal')"
                               onfocus="InitInput.setNumber(this,9,2,2)" type="text"  class="input_text required "  value="" />
                    </td>
                    <td  align="center">
                        <input name="hotel_expense" label="住宿费" id="hotel_expense"
                               onchange="countFundAuto('','nationality_travel_expenses,hotel_expense,transportation_charges,expert_subsidies,expert_living_expenses,lecture_fees,petty_cash,contract_agreed_amount,apply_for_subsidy','subtotal')"
                               onfocus="InitInput.setNumber(this,9,2,2)" type="text"  class="input_text required "  value="" />
                    </td>
                    <td align="center">
                        <input name="transportation_charges" id="transportation_charges"
                               onchange="countFundAuto('','nationality_travel_expenses,hotel_expense,transportation_charges,expert_subsidies,expert_living_expenses,lecture_fees,petty_cash,contract_agreed_amount,apply_for_subsidy','subtotal')"

                               label="城市间交通费" onfocus="InitInput.setNumber(this,9,2,2)" type="text"  class="input_text required "  value="" />
                    </td>
                    <td align="center">
                        <input name="expert_subsidies" id="expert_subsidies"
                               onchange="countFundAuto('','nationality_travel_expenses,hotel_expense,transportation_charges,expert_subsidies,expert_living_expenses,lecture_fees,petty_cash,contract_agreed_amount,apply_for_subsidy','subtotal')"

                               label="专家补贴" type="text"  onfocus="InitInput.setNumber(this,9,2,2)" class="input_text required "  value="" />
                    </td>
                    <td align="center">
                        <input name="expert_living_expenses" id="expert_living_expenses"
                               onchange="countFundAuto('','nationality_travel_expenses,hotel_expense,transportation_charges,expert_subsidies,expert_living_expenses,lecture_fees,petty_cash,contract_agreed_amount,apply_for_subsidy','subtotal')"

                               label="专家生活费" type="text" onfocus="InitInput.setNumber(this,9,2,2)"  class="input_text required "  value="" />
                    </td>
                    <td align="center">
                        <input name="lecture_fees" label="讲课费" id="lecture_fees"
                               onchange="countFundAuto('','nationality_travel_expenses,hotel_expense,transportation_charges,expert_subsidies,expert_living_expenses,lecture_fees,petty_cash,contract_agreed_amount,apply_for_subsidy','subtotal')"

                               type="text" onfocus="InitInput.setNumber(this,9,2,2)"  class="input_text required "  value="" />
                    </td>
                    <td align="center">
                        <input name="petty_cash" label="零用费" id="petty_cash"
                               onchange="countFundAuto('','nationality_travel_expenses,hotel_expense,transportation_charges,expert_subsidies,expert_living_expenses,lecture_fees,petty_cash,contract_agreed_amount,apply_for_subsidy','subtotal')"

                               type="text" onfocus="InitInput.setNumber(this,9,2,2)"  class="input_text required "  value="" />
                    </td>
                    <td align="center">
                        <input name="contract_agreed_amount" id="contract_agreed_amount"
                               onchange="countFundAuto('','nationality_travel_expenses,hotel_expense,transportation_charges,expert_subsidies,expert_living_expenses,lecture_fees,petty_cash,contract_agreed_amount,apply_for_subsidy','subtotal')"

                               label="合同约定金额" type="text"  onfocus="InitInput.setNumber(this,9,2,2)" class="input_text required "  value="" />
                    </td>
                    <td align="center">
                        <input name="apply_for_subsidy" id="apply_for_subsidy"
                               onchange="countFundAuto('','nationality_travel_expenses,hotel_expense,transportation_charges,expert_subsidies,expert_living_expenses,lecture_fees,petty_cash,contract_agreed_amount,apply_for_subsidy','subtotal')"

                               label="申请资助" type="text"  onfocus="InitInput.setNumber(this,9,2,2)" class="input_text required "  value="" />
                    </td>
                    <td align="center">
                        <input name="subtotal" id="subtotal" label="小计" type="text"  class="input_text required gray" disabled="disabled" onfocus="InitInput.setNumber(this,9,2,2)" value="" />
                    </td>
                </tr>

		</table>
	</div>


	

	<table width="100%" align="center">
		<tr>
			<td><input type="button"  class="button_01 notdisabled" id="savePsn" value="保存">
				&nbsp;<input type="button" id="cancel" class="button_01 notdisabled" value="取消" onclick="parent.tb_remove();">
			</td>
		</tr>
	</table>
	<br />
</body>
</html>